package com.thz.friend.mapper.blog;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.thz.friend.pojo.blog.Blog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @Description
 * @Author thz
 * @Date 2025/5/10
 */
@Mapper
public interface BlogMapper extends BaseMapper<Blog> {
    @Select("select COUNT(*) FROM tb_blog WHERE course_id=#{courseId}")
    Integer selectCourseBlogCount(Long courseId);
}
